//
//  YZMKLineItem.m
//  YZMicroStock
//
//  Created by wangminhong on 16/4/12.
//  Copyright © 2016年 cqjr. All rights reserved.
//

#import "YZMKLineItem.h"
#import "Mantle+Utils.h"

@implementation YZMKLineItem

+ (NSDictionary *)JSONKeyPathsByPropertyKey {
    return @{
             @"time": @"time",
             @"code": @"code",
             @"last": @"last",
             @"open": @"open",
             @"high": @"high",
             @"low": @"low",
             @"price": @"price",
             @"volume": @"volume",
             @"amount": @"amount"
             };
}


+ (NSValueTransformer *)highJSONTransformer
{
    return [NSValueTransformer valueTransformerForName: MTLStringDoubleTransformerName];
}

+ (NSValueTransformer *)lowJSONTransformer
{
    return [NSValueTransformer valueTransformerForName: MTLStringDoubleTransformerName];
}


+ (NSValueTransformer *)openJSONTransformer
{
    return [NSValueTransformer valueTransformerForName: MTLStringDoubleTransformerName];
}


+ (NSValueTransformer *)priceJSONTransformer
{
    return [NSValueTransformer valueTransformerForName: MTLStringDoubleTransformerName];
}

+ (NSValueTransformer *)lastJSONTransformer
{
    return [NSValueTransformer valueTransformerForName: MTLStringDoubleTransformerName];
}
+ (NSValueTransformer *)volumeJSONTransformer
{
    return [NSValueTransformer valueTransformerForName: MTLStringLongTransformerName];
}

+ (NSValueTransformer *)amountJSONTransformer
{
    return [NSValueTransformer valueTransformerForName: MTLStringLongTransformerName];
}


@end
